<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="kuakao" uri="http://www.kuakao.net/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>添加 / 修改</title>
    <link href="${pageContext.request.contextPath}/style/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/tool/jquery/jquery.min.js"></script>
<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
</head>
<body>
 <div class="mainCon">
  <div class="mCon">
  <div class="mCon_tab">
   <ul>   
    <li><span class="mCon_1cuta">添加 / 修改原料信息</span></li>

   </ul>
  </div>
  <br/>
  <form action="${pageContext.request.contextPath}/admin/material/do_save_material.action" method="post">
  <input type="hidden" name="id" value="${empty baseinfo ? 0 : baseinfo.id}" />
  <input type="hidden" name="cateid" value="${cateid}" />
  <table border="0" align="center" cellpadding="0" cellspacing="0">
  	<tr>
  		<td><strong>名称：</strong></td>
  		<td><input class="mCon_int" type="text" style="width:260px;" name="mname" value="${baseinfo.mname}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'"></td>
  		<td><strong>&nbsp;&nbsp;简拼：</strong></td>
  		<td><input class="mCon_int" type="text" style="width:260px;" name="jianpin" value="${baseinfo.jianpin}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'"></td>
  	</tr>
  	<tr>
  		<td><strong>单位：</strong></td>
  		<td>
  			<kuakao:xmlConfig configName="product_unit"/>
			<select name="unit" style="width:260px;">
			<c:forEach var="xmlConfig" items="${xmlConfigs}">
				<option value="${xmlConfig.key}" <c:if test="${baseinfo.unit==xmlConfig.key}">selected='selected'</c:if>>${xmlConfig.value}</option>
			</c:forEach>
			</select>
  		</td>
  		<td><strong>&nbsp;&nbsp;规格：</strong></td>
  		<td><input class="mCon_int" type="text" style="width:260px;" name="standard" value="${baseinfo.standard}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'"></td>
  	</tr>
  	<tr>
  		<td><strong>损耗比(%)：</strong></td>
  		<td><input class="mCon_int" type="text" style="width:260px;" name="lossratio" value="${baseinfo.lossratio}" onblur="this.className='mCon_int'" onfocus="this.className+=' mCon_int int_yewBg'"></td>
  		<td>&nbsp;</td>
  		<td>&nbsp;</td>
  	</tr>
  </table>
  <div class="scxz">
      <input class="fx1" name="" type="submit" value="保 存" />
      <input class="fx1" type="button" onclick="history.back(-1);" value="返 回" />
  </div>
  </form>
  <div class="clear"></div>
  </div>
  <div class="clear"></div>
 </div>
</body>
</html>


